package com.ddxcloud.movie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ddxcloud.movie.data.dto.LoginAlipayDTO;
import com.ddxcloud.movie.data.dto.SmsLoginDTO;
import com.ddxcloud.movie.data.dto.WxLoginDTO;
import com.ddxcloud.movie.data.entity.User;
import me.chanjar.weixin.common.error.WxErrorException;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface UserService extends IService<User> {

    User getUserByMobile(String mobile);

    User loginByWechat(WxLoginDTO dto) throws WxErrorException;

    Map<String, Object> loginBySms(SmsLoginDTO dto);

    void loginByAlipay(LoginAlipayDTO dto, HttpServletRequest request);
}
